package com.lanou.managerLogin.manager.service;

import com.lanou.managerLogin.manager.dao.ManagerLogin;
import com.lanou.managerLogin.manager.dao.ManagerLoginImpl;
import com.lanou.managerLogin.manager.domain.User;

public class ManagerLoginService {

    private ManagerLogin ml = new ManagerLoginImpl();


    public boolean login(User user) {
        if (ml.login(user).size() == 0) {
            return false;
        }else {
            return true;
        }
    }
}
